package org.lanqiao.bean;

import java.io.Serializable;

/**
 * education
 * @author 
 */
public class Education implements Serializable {
    private Integer id;

    private Integer userID;

    private Integer startYear;

    private Integer endYear;

    private String schoolName;

    private Integer eduBackground;

    private String majorName;

    private Integer eduOptions;

    private String date;

    private String b1;

    private String b2;

    private String b3;
    

    public Education() {
		super();
	}
    

	public Education(Integer userID, Integer startYear, Integer endYear, String schoolName,
			Integer eduBackground, String majorName) {
		super();

		this.userID = userID;
		this.startYear = startYear;
		this.endYear = endYear;
		this.schoolName = schoolName;
		this.eduBackground = eduBackground;
		this.majorName = majorName;
	}

	public Education(Integer startYear, Integer endYear, String schoolName,
			Integer eduBackground, String majorName,Integer id) {
		super();
		this.id = id;
		this.userID = userID;
		this.startYear = startYear;
		this.endYear = endYear;
		this.schoolName = schoolName;
		this.eduBackground = eduBackground;
		this.majorName = majorName;
	}

	private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public Integer getStartYear() {
        return startYear;
    }

    public void setStartYear(Integer startYear) {
        this.startYear = startYear;
    }

    public Integer getEndYear() {
        return endYear;
    }

    public void setEndYear(Integer endYear) {
        this.endYear = endYear;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public Integer getEduBackground() {
        return eduBackground;
    }

    public void setEduBackground(Integer eduBackground) {
        this.eduBackground = eduBackground;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    public Integer getEduOptions() {
        return eduOptions;
    }

    public void setEduOptions(Integer eduOptions) {
        this.eduOptions = eduOptions;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    public String getB3() {
        return b3;
    }

    public void setB3(String b3) {
        this.b3 = b3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Education other = (Education) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserID() == null ? other.getUserID() == null : this.getUserID().equals(other.getUserID()))
            && (this.getStartYear() == null ? other.getStartYear() == null : this.getStartYear().equals(other.getStartYear()))
            && (this.getEndYear() == null ? other.getEndYear() == null : this.getEndYear().equals(other.getEndYear()))
            && (this.getSchoolName() == null ? other.getSchoolName() == null : this.getSchoolName().equals(other.getSchoolName()))
            && (this.getEduBackground() == null ? other.getEduBackground() == null : this.getEduBackground().equals(other.getEduBackground()))
            && (this.getMajorName() == null ? other.getMajorName() == null : this.getMajorName().equals(other.getMajorName()))
            && (this.getEduOptions() == null ? other.getEduOptions() == null : this.getEduOptions().equals(other.getEduOptions()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()))
            && (this.getB3() == null ? other.getB3() == null : this.getB3().equals(other.getB3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserID() == null) ? 0 : getUserID().hashCode());
        result = prime * result + ((getStartYear() == null) ? 0 : getStartYear().hashCode());
        result = prime * result + ((getEndYear() == null) ? 0 : getEndYear().hashCode());
        result = prime * result + ((getSchoolName() == null) ? 0 : getSchoolName().hashCode());
        result = prime * result + ((getEduBackground() == null) ? 0 : getEduBackground().hashCode());
        result = prime * result + ((getMajorName() == null) ? 0 : getMajorName().hashCode());
        result = prime * result + ((getEduOptions() == null) ? 0 : getEduOptions().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        result = prime * result + ((getB3() == null) ? 0 : getB3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userID=").append(userID);
        sb.append(", startYear=").append(startYear);
        sb.append(", endYear=").append(endYear);
        sb.append(", schoolName=").append(schoolName);
        sb.append(", eduBackground=").append(eduBackground);
        sb.append(", majorName=").append(majorName);
        sb.append(", eduOptions=").append(eduOptions);
        sb.append(", date=").append(date);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", b3=").append(b3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}